'''
Company: TWL
Author: xue jian
Email: xuejian@kanzhun.com
Date: 2020-11-19 10:01:25
'''
#
# @lc app=leetcode.cn id=283 lang=python3
#
# [283] 移动零
#

# @lc code=start
from typing import List
class Solution:
    def moveZeroes(self, nums: List[int]) -> None:
        """
        Do not return anything, modify nums in-place instead.
        """
        i, cnt=0, 0
        while cnt<len(nums):
            if nums[i]==0:
                nums.pop(i)
                nums.append(0)
            else:
                i+=1
            cnt+=1
        return
# @lc code=end

